{extend name="common/common" /} {block name="style"}
<style type="text/css">
	.container-fluid .btn {
		float: right;
		margin-left: 10px;
	}
	.btn.btn-sm {
		margin: 0;
	}
	.layui-input-block{
		margin-left: 80px;
	}
	#cusTable tr{
		cursor: pointer;
	}
	#layTestTime,#laySchoolRoll{
		display: none;
		padding: 15px;
	}
	.layui-form-label{
		width: 90px;
	}
	.layui-input.layui-unselect{
		width: 180px;
	}
	.layui-anim.layui-anim-upbit{
		width: 100px;
	}
	.pageBox{
		text-align: right;
	}
	<style media="screen">
	.sm-st {
		background: #fff;
		padding: 20px;
		-webkit-border-radius: 3px;
		-moz-border-radius: 3px;
		border-radius: 3px;
		margin-bottom: 20px;
		-webkit-box-shadow: 0 1px 0px rgba(0,0,0,0.05);
		box-shadow: 0 1px 0px rgba(0,0,0,0.05);
	}
	.sm-st-icon {
	    width: 60px;
	    height: 60px;
	    display: inline-block;
	    line-height: 60px;
	    text-align: center;
	    font-size: 30px;
	    background: #eee;
	    -webkit-border-radius: 5px;
	    -moz-border-radius: 5px;
	    border-radius: 5px;
	    float: left;
	    margin-right: 10px;
	    color: #fff;
	}
	.sm-st-info h1 {
		width: 165px;
	    display: block;
	    font-size: 24px;
	    font-weight: 600;
	}
	.st-danger {
	    background-color: #ed5565;
	}
	.st-info{
		background-color: #23c6c8;
	}
	.st-success{
		background-color: #337ab7;
	}
	.st-primary{
		background-color: #5cb85c;
	}
	div.row{
		min-width: 800px;
	}
	div.ibox-content{
		overflow: auto;
	}
	.span-strong{
		font-size: 14px;
	}
	.sm-st-icon{
		cursor:pointer;
	}
	.btn-bar{
		position: absolute;
	}
	.btn-bar .btn{
		margin-top: 10px;
	}
	#markShade{
		position: fixed;
		z-index: 9999999999999;
		background-color: #000;
		opacity: 0.3;
		display: none;
		width: 100%;
		height: 100%;
	}
	#markShade h1 {
		color: #FFF;
		text-align: center;
		margin-top:300px;
	}
	#total_number,#abnorma_number,#graduat_number,#read_number{
		cursor:pointer;
	}
	</style>
</style>
{/block} {block name="content"}
<div id="markShade">
	<h1>正在导出</h1>
</div>
<div class="wrapper wrapper-content animated fadeInRight">
	<div class="ibox float-e-margins">
		<div class="ibox-title">
			<h5>学员列表</h5>
		</div>
		<div class="ibox-content">
			<fieldset class="layui-elem-field">
				<legend>搜索栏</legend>
				<div class="layui-field-box">
					<form class="layui-form" action="" id="seaForm">
						<div class="layui-form-item">
							<!-- samsara 2018-8-1 新增 -->
							<div class="layui-input-inline" style="width:180px;">
									<select name="depart_id" id="depart_id" lay-filter="depart_id">
											<option value="" selected>部门</option>
											<?=$dep_Arr;?>
									</select>
							</div>
							<div class="layui-input-inline" style="width:180px;">
									<select name="user_id" id="user_id" lay-filter="user_id" >
											<option value="" selected>咨询师</option>
											<?php foreach($departUserArr as $val):?>
													<option value="<?=$val['id']?>"><?=$val['real_name']?></option>>
											<?php endforeach;?>
									</select>
							</div>

							<div class="layui-input-inline" style="width: 120px;">
								<input type="text" name="seaPhone" id="seaPhone" placeholder="手机" class="layui-input">
							</div>
							<div class="layui-input-inline" style="width: 80px;">
								<input type="text" name="seaName" id="seaName" placeholder="学员姓名" class="layui-input">
							</div>
							<div class="layui-input-inline" style="width:180px;">
								<select name="seaName" id="seaSchool" lay-filter="getMajor" >
									<option value="" selected>学校</option>
									{volist name="$CanseeSchool" id="v"}
									<option value="{$v.id}">{$v.name}</option>
									{/volist}
								</select>
							</div>
							<div class="layui-input-inline" style="width:180px;">
								<select name="seaMajor" id="seaMajor">
									<option value="" selected>专业</option>
								</select>
							</div>
							<div class="layui-input-inline" style="width: 100px;">
								<input type="text" name="seaBatch" id="seaBatch" placeholder="批次" class="layui-input">
							</div>
							<!-- <div class="layui-input-inline" style="width: 180px;">
								<input type="text" name="seaClass" id="seaClass" placeholder="班级" class="layui-input">
							</div> -->
							<div class="layui-input-inline" style="width: 180px;">
								<select name="seaRollStatus" id="seaRollStatus">
									<option value="">有无异常</option>
									<option value="0">无</option>
									<option value="1">有</option>
								</select>
							</div>

							<div class="layui-input-inline" style="width: 180px;">
								<select name="seaSchoolRoll" id="seaSchoolRoll">
									<option value="">学籍状态</option>
									<option value="1">在读</option>
									<option value="2">毕业</option>
									<option value="3">休学</option>
									<option value="4">退学</option>
								</select>
							</div>

							<div class="layui-inline">
								<button type="button" id="search" class="btn btn-info" style="margin-top: 2px;">查询</button>
							</div>

						</div>
					</form>
				</div>
			</fieldset>

			<fieldset class="layui-elem-field">
				<legend id="seaTips">学校 - 专业</legend>
				<div class="layui-field-box">
					<div class="row">
						<div class="col-sm-3 col-xs-6">
							<div class="sm-st clearfix" id="total_number">
								<span class="sm-st-icon st-info">
									<i class="fa fa-users"></i>
								</span>
								<div class="sm-st-info">
									<h1 data-rock="true" class="value1 value" data-count="100" data-lazy="24" data-after="人">0</h1>
									<span class="span-strong span-info">学生总人数</span>
								</div>
							</div>
						</div>
						<div class="col-sm-3 col-xs-6">
							<div class="sm-st clearfix" id="abnorma_number">
								<span class="sm-st-icon st-danger">
									<i class="fa fa-slideshare"></i>
								</span>
								<div class="sm-st-info">
									<h1 data-rock="true" class="value2 value" data-count="100" data-lazy="24" data-after="人">0</h1>
									<span class="span-strong span-danger">学籍异常人数</span>
								</div>
							</div>
						</div>
						<div class="col-sm-3 col-xs-6">
							<div class="sm-st clearfix" id="graduat_number">
								<span class="sm-st-icon st-success">
									<i class="fa fa-black-tie"></i>
								</span>
								<div class="sm-st-info">
									<h1  data-rock="true" class="value3 value" data-count="100" data-lazy="24" data-after="人">0</h1>
									<span class="span-strong span-success">毕业人数</span>
								</div>
							</div>
						</div>
						<div class="col-sm-3 col-xs-6">
							<div class="sm-st clearfix" id="read_number">
								<span class="sm-st-icon st-primary">
									<i class="fa fa-github-alt"></i>
								</span>
								<div class="sm-st-info">
									<h1 data-rock="true" class="value4 value" data-count="100" data-lazy="24" data-after="人">0</h1>
									<span class="span-strong span-primary">在读人数</span>
								</div>
							</div>
						</div>
					</div>
				</div>
			</fieldset>

			<div class="btn-bar">
					{if authCheck('education/delst')}
						<a class="btn btn-danger getIDs" href="javascript:delST();" data-param=''>删除学员</a>
					{/if}
					{if authCheck('education/upgraduation')}
						<a class="btn btn-success getIDs" href="javascript:schoolRoll();" data-param=''>升级毕业</a>
					{/if}
					{if authCheck('education/edittesttime')}
					<a class="btn btn-primary getIDs" href="javascript:editTestTime();" data-param=''>安排考试</a>
					{/if}
			</div>
			<table id="cusTable">
				<thead>
					<th>checkbox</th>
					<th class="text-center" data-width="100px" data-field="id">ID</th>
					<th class="text-center" data-width="100px" data-field="name">学员姓名</th>
					<th class="text-center" data-width="100px" data-field="enroll_time">报名时间</th>
					<th class="text-center" data-width="150px" data-field="school">学校</th>
					<th class="text-center" data-width="100px" data-field="grade">层次</th>
					<th class="text-center" data-width="150px" data-field="major">专业</th>
					<th class="text-center" data-width="100px" data-field="batch">批次</th>
					<!-- <th class="text-center" data-field="class">班级</th> -->
					<th class="text-center" data-width="150px" data-field="phone">手机</th>
					<th class="text-center" data-width="100px" data-field="sex_name">性别</th>
					<th class="text-center" data-width="100px" data-field="consultant_name">咨询师</th>
					<th class="text-center" data-width="360px" data-field="consultant_department">咨询师部门</th>

					<th class="text-center" data-width="300px" data-field="memInfo_address">地址</th>
					<th class="text-center" data-width="100px" data-field="memInfo_nation">民族</th>
					<th class="text-center" data-width="300px" data-field="memInfo_id_card">身份证号</th>
					<th class="text-center" data-width="100px" data-field="memInfo_birthday">生日</th>
					<th class="text-center" data-width="100px" data-field="memInfo_qq">QQ</th>
					<th class="text-center" data-width="100px" data-field="memInfo_weixin">微信</th>
					<th class="text-center" data-width="100px" data-field="memInfo_education">学历</th>
					<th class="text-center" data-width="100px" data-field="memInfo_intention">意向专业</th>
					<th class="text-center" data-width="100px" data-field="memInfo_industry">工作行业</th>
					<th class="text-center" data-width="100px" data-field="memInfo_region">所在地区</th>
					<th class="text-center" data-width="100px" data-field="memInfo_native_place">籍贯</th>
					<th class="text-center" data-width="100px" data-field="memInfo_graduate_school">毕业学校</th>
					<th class="text-center" data-width="300px" data-field="memInfo_certificate_number">证书编号</th>
					<th class="text-center" data-width="100px" data-field="graduation_time">毕业时间</th>
					<th class="text-center" data-width="100px" data-field="memInfo_source_origin">生源途径</th>
					<th class="text-center" data-width="100px" data-field="memInfo_grade">等级</th>
					<th class="text-center" data-width="500px" data-field="memInfo_remarks">备注</th>

					<th class="text-center" data-width="100px" data-field="tuition">学费</th>
					<th class="text-center" data-width="100px" data-field="registration">报名费</th>
					<th class="text-center" data-width="100px" data-field="material_cost">资料费</th>
					<th class="text-center" data-width="100px" data-field="photo_collection">照片采集费</th>
					<th class="text-center" data-width="100px" data-field="roll_status_name">有无异常变动</th>
					<th class="text-center" data-width="100px" data-field="school_roll_name">学籍状态</th>
					{if authCheck('user/useradd') || authCheck('education/delteacheruser')}
					<th class="text-center" data-width="100px" data-field="operate">操作</th>
					{/if}
				</thead>
			</table>
		</div>
	</div>


	<div class="ibox float-e-margins">
		<div class="ibox-title">
			<h5>学员转出记录</h5>
		</div>
		<div class="ibox-content">
			<table class="table table-hover table-striped">
				<thead>
					<tr>
						<th>ID</th>
						<th>学生姓名</th>
						<th>原学校</th>
						<th>现学校</th>
						<th>转出时间</th>
					</tr>
				</thead>
				<tbody>
					{volist name="$StRollOutInfo" id="v"}
					<tr>
						<td>{$v.id|default=""}</td>
						<td>{$v.st_name|default=""}</td>
						<td>{$v.school_name|default=""}</td>
						<td>{$v.to_name|default=""}</td>
						<td>{$v.c_time|date="Y-m-d",###}</td>
					</tr>
					{/volist}
				</tbody>
			</table>
			<div class="pageBox">
				{$StRollOutInfo->render()}
			</div>
		</div>
	</div>
</div>

<!-- start of 毕业升级弹窗 -->
<div id="laySchoolRoll">
	<form class="layui-form" action="" method="post" id="RollForm">
		<input type="hidden" name="ids" value="" class="inIds">
		<input type="hidden" name="abnormal" value="0">
		<div class="layui-form-item">
			<label class="layui-form-label">变动原因</label>
			<div class="layui-input-inline" style="width:100px;">
				<select name="source">
					<option value="" selected>请选择</option>
					{volist name="rollStatus" id="v"}
					<option value="{$v.id}">{$v.name}</option>
					{/volist}
				</select>
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">学籍状态</label>
			<div class="layui-input-inline" style="width:100px;">
				<select name="school_roll">
					<option value="" selected>请选择</option>
					<option value="0">报名中</option>
					<option value="1">在读</option>
					<option value="2">毕业</option>
					<option value="3">休学中</option>
					<option value="4">退学</option>
				</select>
			</div>
		</div>
		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">变更备注</label>
			<div class="layui-input-inline">
				<textarea class="layui-textarea" name="remark" rows="10"></textarea>
			</div>
		</div>
		{if authCheck('education/upgraduation')}
		<div class="layui-form-item text-center">
			<button class="btn btn-primary" type="submit">提交</button>
		</div>
		{/if}
	</form>
</div>
<!-- end of 毕业升级弹窗 -->

<!-- start of 安排考试时间弹窗 -->
<div id="layTestTime">
	<form class="layui-form" action="" id="testTimeForm">
		<input type="hidden" name="ids" value="" class="inIds">
		<div class="layui-form-item">
			<label class="layui-form-label">考试时间</label>
			<div class="layui-input-inline">
				<input type="text" name="test_time" readonly class="layui-input test_time">
			</div>
		</div>
		<div class="layui-form-item text-center">
			{if authCheck('education/edittesttime')}
			<button class="btn btn-primary" type="submit">保存</button>
			{/if}
		</div>
	</form>
</div>
<!-- end of 安排考试时间弹窗 -->
<!-- <input type="hidden" id="openType" value="{$Think.get.type|default=0}"> -->
{/block} {block name="script"}
<script type="text/javascript" src="__JS__/LazyNumber.js"></script>
<script type="text/javascript" src="__JS__/tableExport.js"></script>
<script type="text/javascript" src="__JS__/bootstrap-table-export.js"></script>
<script type="text/javascript">
	var IDs = '';

	function initTable() {
		//先销毁表格
		$('#cusTable').bootstrapTable('destroy');
		//初始化表格,动态从服务器加载数据
		$("#cusTable").bootstrapTable({
			method: "get", //使用get请求到服务器获取数据
			url: "./student", //获取数据的地址
			striped: true, //表格显示条纹
			pagination: true, //启动分页
			pageSize: 10, //每页显示的记录数
			pageNumber: 1, //当前第几页
			pageList: [5, 10, 15, 20, 25], //记录数可选列表
			sidePagination: "server", //表示服务端请求
			paginationFirstText: "首页",
			paginationPreText: "上一页",
			paginationNextText: "下一页",
			paginationLastText: "尾页",
			queryParamsType: "undefined",
			showColumns:true,
			resizable:true,
			showExport: true,  //是否显示导出按钮
			exportTypes:['excel'],  //导出文件类型
			Icons:'glyphicon-export',
			exportOptions:{
				ignoreColumn: [0,1,19],  //忽略某一列的索引
				fileName: '教务统计表格',  //文件名称设置
				worksheetName: '教务统计表格',  //表格工作区名称
				tableName: '教务统计表格',
				excelstyles: ['background-color', 'color', 'font-size', 'font-weight'],
				onMsoNumberFormat:function (cell, row, col) {
			       var result = "";
			       if (row > 0 && col == 0)
			           result = "\\@";
			       return result;
			   }
			},
			columns: [{
				checkbox: true,
				formatter: function(value, row, index) {
					if (row.state == true) {
						return {
							checked: value, //设置选中
						};
					}
					return value;
				},
			}],
			queryParams: function queryParams(params) { //设置查询参数
				var param = {
					pageNumber: params.pageNumber,
					pageSize: params.pageSize,
					seaName: $("#seaName").val(),
					seaPhone: $("#seaPhone").val(),
					seaSchool: $("#seaSchool").val(),
					seaMajor: $("#seaMajor").val(),
					seaBatch: $("#seaBatch").val(),
					seaAsker: $("#user_id").val(),
					seaAsk_D: $("#depart_id").val(),
					// seaClass: $("#seaClass").val(),
					seaSchoolRoll:$("#seaSchoolRoll").val(),
					seaRollStatus:$("#seaRollStatus").val()
				};
				return param;
			},
			onLoadSuccess: function(res) { //加载成功时执行
				if (111 == res.code) {
					window.location.reload();
				}
				//总数

				var param ={
					'seaName':'',
					'seaPhone':'',
					'seaSchool':$("#seaSchool").val(),
					'seaMajor':$("#seaMajor").val(),
					'seaBatch':'',
					'seaSchoolRoll':'',
					'seaRollStatus':'',
					'pageSize':1,
					'pageNumber':1,
				}
				$.post('./student',param,function(response){
					$(".value1").attr('data-count',response.total);
					$(".value1").numberRock();
				})
				//有异常
				param.seaRollStatus = 1;
				$.post('./student',param,function(response){
					$(".value2").attr('data-count',response.total);
					$(".value2").numberRock();
				})
				param.seaRollStatus = '';
				//毕业
				param.seaSchoolRoll = 2;
				$.post('./student',param,function(response){
					$(".value3").attr('data-count',response.total);
					$(".value3").numberRock();
				})
				param.seaSchoolRoll = '';
				//在读
				param.seaSchoolRoll = 1;
				$.post('./student',param,function(response){
					$(".value4").attr('data-count',response.total);
					$(".value4").numberRock();

				})
				param.seaSchoolRoll = '';
				$(".value").html(0);

				$(".value").attr('data-rock',"true");
				layer.msg("加载成功", {
					time: 1000
				});

				var li = "<li data-type='all' onclick='ExportAll();'><a href='javascript:void(0)'>导出全部</a></li>";
                         $(".export>.dropdown-menu").append(li);
                         $(".export>.dropdown-menu>li:nth-child(1)>a").html('导出当前');
			},
			onLoadError: function() { //加载失败时执行
				layer.msg("加载数据失败");
			},
			onDblClickRow: function(row) {
				window.location.href = "{:url('education/showSTInfo')}?st_id="+row.id;
			}
		});
	}

	$(function() {
		// var openType = $("#openType").val();//0.正常打开,1.统计跳转
		// if(openType == '1'){
		// 	$("#seaSchool").val('{$Think.get.seaSchool}');
		// 	$("#seaMajor").val('{$Think.get.seaMajor}');
		// 	$("#seaSchoolRoll").val('{$Think.get.seaSchoolRoll}');
		// 	$("#seaRollStatus").val('{$Think.get.seaRollStatus}');
		// 	$("#search").click();
		// }
		//调用函数，初始化表格
		initTable();
		layui.use(['form','laydate'], function(){
	  		var form = layui.form,laydate = layui.laydate;
			laydate.render({
			    elem: '.test_time',
				type: 'datetime'
			});
			form.on('select(getMajor)',function(data){
				$.post('{:url("Finance/getMajorByPid")}',{pid:data.value},function(res){
					var op = '<option value="" selected>专业</option>';
					for(var i=0;i<res.data.length;i++){
						op += '<option value="'+res.data[i].id+'">'+res.data[i].name+'</option>';
					}
					$("#seaMajor").html(op);
					form.render();
				});
			});

			// samsara 2018-8-1 新增
			// Ajax 改变不同部门时的不同职员
			form.on('select(depart_id)',function(data){
				var depart_id = $('#depart_id').val();
				$.post("{:url('finance/departUser')}",{
						depart_id : depart_id
				},function(res){
						if(res.code == 1){
								var data = res.data;
								var app = '<option value="">咨询师</option>';
								for(var i in data){
										app += '<option value="'+data[i]["id"]+'">'+data[i]["real_name"]+'</option>'
								}
								$('#user_id').html(app);
								form.render();
						}
				})
			})
	  	});
		//当点击查询按钮的时候执行
		$("#search").bind("click", function(){
			var s_id = $("#seaSchool").val(),m_id = $("#seaMajor").val();
			var aSopt = $("#seaSchool option"),aMopt = $("#seaMajor option");
			var s_name = "学校",m_name = "专业";
			for(i in aSopt){
				if(aSopt[i].value == s_id){
					s_name = aSopt[i].innerHTML;
				}
			}
			for(i in aMopt){
				if(aMopt[i].value == m_id){
					m_name = aMopt[i].innerHTML;
				}
			}
			var seatips = s_name + " - " + m_name;
			$("#seaTips").html(seatips);
			initTable();
		});

		$('.getIDs').on('click', function() {
			var checkedOn = $('#cusTable').bootstrapTable('getSelections');
			var IDs = '';
			for (var i = 0; i < checkedOn.length; i++) {
				if (i == 0) {
					IDs = checkedOn[0].id;
				} else {
					IDs += ',' + checkedOn[i].id;
				}
			}
			$('.getIDs').attr('data-param', IDs);
		});

		$('.cancel').on('click', function() {
			layer.closeAll();
		});

		$("#testTimeForm").on('submit',function(){
			var params = $("#testTimeForm").serialize();
			$.post('./editTestTime',params,function(res){ ResTab(res); });
			return false;
		});

		$("#RollForm").on('submit',function(){
			var params = $("#RollForm").serialize();
			$.post('./upGraduation',params,function(res){ ResTab(res); });
			return false;
		});
	});

	function delST(ids = null) {
		if (ids == null) {
			ids = $('.getIDs').attr('data-param');
		}
		if (ids != '') {
			layer.confirm('确认删除这些数据?', {icon: 3,title: '提示'}, function(index) {
				$.post('./delST', {ids: ids}, function(res) {ResTab(res);});
			});
		} else {
			layer.msg("请选择数据", {anim: 6});
		}
	}

	function schoolRoll() {
		ids = $('.getIDs').attr('data-param');
		if (ids != '') {
			layer.confirm('确认操作这些数据?', {icon: 3,title: '提示'}, function(index) {
				layer.closeAll();
				$(".inIds").val(ids);
				var schoolRollBox = layer.open({
					type: 1,
					title: "升级毕业",
					area: ['350px', '420px'],
					content: $("#laySchoolRoll"),
				});
			});
		} else {
			layer.msg("请选择数据", {anim: 6});
		}
	}

	function editTestTime() {
		ids = $('.getIDs').attr('data-param');
		if (ids != '') {
			layer.confirm('确认操作这些数据?', {icon: 3,title: '提示'}, function(index) {
				layer.closeAll();
				$(".inIds").val(ids);
				var TestTimeBox = layer.open({
					type: 1,
					title: "安排考试",
					area: ['350px', '200px'],
					content: $("#layTestTime"),
				})
			});
		} else {
			layer.msg("请选择数据", {anim: 6});
		}
	}

	function ResTab(res){
		if (res.code == 1) {
			layer.alert(res.msg, {title: '友情提示',icon: 1,closeBtn: 0}, function(){
				layer.closeAll();
				initTable();
			});
		} else {
			layer.msg(res.msg, {anim: 6});
		}
	}

	function ExportAll(){
		$('#markShade').show();
		$.post("./ExpotrAllEduInfo",{},function(res){
			setTimeout(function(){
				window.open("/upload/excel/downloadEdu" + {:session("id")} + ".xls");
				$('#markShade').hide();
			},5000);
		});
	}
	/**
	 * 点击不同模块的不同传值
	 * #total_number		总人数
	 * #abnorma_number	学籍异常人数
	 * #graduat_number  毕业人数
	 * #read_number			在读人数
	 */
	 $(function(){
		 	var seaName 				= 	$("#seaName").val('');//学员姓名
			var seaPhone 			= 	$("#seaPhone").val('');//手机号码
			var seaSchool 			= 	$("#seaSchool").val('');//学校
			var seaMajor 			= 	$("#seaMajor").val('');//专业
			var seaBatch 			= 	$("#seaBatch").val('');//批次
			var seaSchoolRoll 	= 	$("#seaSchoolRoll").val('');//学籍状态
			var seaRollStatus 	= 	$("#seaRollStatus").val('');//有无异常
			layui.use(['form','laydate'], function(){
					var form = layui.form,laydate = layui.laydate;

						// 总人数
	 			 $('#total_number').click(function(){
	 				 	seaName 				= $("#seaName").val('');
	 					seaPhone 			= $("#seaPhone").val('');
	 					seaSchool 		= $("#seaSchool").val('');
	 					seaMajor 			= $("#seaMajor").val('');
	 					seaBatch 			= $("#seaBatch").val('');
	 					seaSchoolRoll = $("#seaSchoolRoll").val('');
	 					seaRollStatus = $("#seaRollStatus").val('');
						form.render('select');
	 		 			$('#search').click();
	 		 		})
	 				// 学籍异常人数
	 				$('#abnorma_number').click(function(){
						seaName 				= $("#seaName").val('');
						seaPhone 			= $("#seaPhone").val('');
						seaSchool 		= $("#seaSchool").val('');
						seaMajor 			= $("#seaMajor").val('');
						seaBatch 			= $("#seaBatch").val('');
						seaSchoolRoll = $("#seaSchoolRoll").val('');

	 					 $('#seaRollStatus>option:nth-child(3)').attr('selected','selected');
	 					 seaRollStatus = $("#seaRollStatus").val(1);
	 					 layui.form.render('select');
	 					 $('#search').click();
	 			 	})
					// 毕业人数
					$('#graduat_number').click(function(){
							seaName 				= $("#seaName").val('');
		 					seaPhone 			= $("#seaPhone").val('');
		 					seaSchool 		= $("#seaSchool").val('');
		 					seaMajor 			= $("#seaMajor").val('');
		 					seaBatch 			= $("#seaBatch").val('');
		 					seaRollStatus = $("#seaRollStatus").val('');


	 					 $('#seaSchoolRoll>option:nth-child(3)').attr('selected','selected');
	 					 seaRollStatus = $("#seaSchoolRoll").val(2);
	 					 layui.form.render('select');
	 					 $('#search').click();
	 			 	})
					// 在读人数
					$('#read_number').click(function(){
						seaName 				= $("#seaName").val('');
						seaPhone 			= $("#seaPhone").val('');
						seaSchool 		= $("#seaSchool").val('');
						seaMajor 			= $("#seaMajor").val('');
						seaBatch 			= $("#seaBatch").val('');
						seaRollStatus = $("#seaRollStatus").val('');

	 					 $('#seaSchoolRoll>option:nth-child(2)').attr('selected','selected');
	 					 seaRollStatus = $("#seaSchoolRoll").val(1);
	 					 layui.form.render('select');
	 					 $('#search').click();
	 			 	})
			});
		})
</script>
{/block}
